package com.jetlion.douyinapiexample.util.douyinapi;

public class DouyinStatusCode {


    //----------------------通用-------------------------------

    /**
     * 成功
     */
    public static final int COMMON_SUCCESS = 0;

    /**
     * 系统繁忙，此时请开发者稍候再试
     */
    public static final int COMMON_SYSTEM_BUSY = 2100004;

    /**
     * 参数不合法
     */
    public static final int COMMON_PARAMETER_ILLEGAL = 2100005;

    /**
     * 无权限操作
     */
    public static final int COMMON_NO_AUTHORITY = 2100007;

    /**
     * 用户被禁封使用该操作
     */
    public static final int COMMON_NO_ALLOWED = 2100009;

    /**
     * quota已用完
     */
    public static final int COMMON_QUOTA_USE_UP = 2190001;

    /**
     * 应用未获得该能力, 请去https://open.douyin.com/申请
     */
    public static final int COMMON_NO_ABILITY = 2190004;

    /**
     * 请求参数access_token openid不匹配
     */
    public static final int COMMON_NO_MATCHING = 2190015;

    //----------------------Oauth2-------------------------------

    /**
     * 参数错误
     */
    public static final int OAUTH2_PARAMETER_ERR = 10002;

    /**
     * 非法应用配置
     */
    public static final int OAUTH2_CONFIG_ILLEGAL = 10003;

    /**
     * 非法授权作用域
     */
    public static final int OAUTH2_SCOPE_ILLEGAL = 10004;

    /**
     * 缺少参数
     */
    public static final int OAUTH2_PARAMETER_LACK = 10005;

    /**
     * 非法重定向URI, 需要与APP配置中的"授权回调域"一致。
     */
    public static final int OAUTH2_URI_ILLEGAL = 10006;

    /**
     * 授权码过期
     */
    public static final int OAUTH2_AUTHORIZATION_EXPIRED = 10007;

    /**
     * 非法调用凭证
     */
    public static final int OAUTH2_VOUCHER_ILLEGAL = 10008;

    /**
     * 非法参数
     */
    public static final int OAUTH2_PARAMETER_ILLEGAL = 10009;

    /**
     * refresh_token过期
     */
    public static final int OAUTH2_REFRESH_TOKEN_EXPIRED = 10010;

    /**
     * 应用包名与配置不一致
     */
    public static final int OAUTH2_PACKAGE_INCONSISTENT = 10011;

    /**
     * 应用正在审核中，无法进行授权
     */
    public static final int OAUTH2_IN_REVIEWING = 10012;

    /**
     * clientkey 或者clientsecret 错误
     */
    public static final int OAUTH2_KEY_OR_SECRET_ERR = 10013;

    /**
     * 授权的clientkey与获取accesstoken不一致
     */
    public static final int OAUTH2_KEY_AND_TOKEN_NO_MATCHING = 10014;

    /**
     * 应用类型错误，如将APP应用的client_key 用于 PC 应用
     */
    public static final int OAUTH2_APP_TYPE_ERR = 10015;

    /**
     * access_token无效
     */
    public static final int OAUTH2_TOKEN_ERR = 2190002;

    /**
     * 用户未授权该api
     */
    public static final int OAUTH2_NO_ABILITY = 2190003;

    /**
     * access_token过期,请刷新或重新授权
     */
    public static final int OAUTH2_ACCESS_TOKEN_EXPIRED = 2190008;

    //----------------------VIDEO-------------------------------

    /**
     * 视频文件太大了
     */
    public static final int VIDEO_TOO_BIG = 2190005;

    /**
     * 视频时长不能超过1分钟
     */
    public static final int VIDEO_OVER_ONE_MINITE = 2190006;

    /**
     * 无效的视频文件id
     */
    public static final int VOIDE_ID_INVALID = 2190007;

    /**
     * 视频投稿功能已封禁，详情见抖音端上【消息-系统通知】
     */
    public static final int VOIDE_CONTRIBUTION_BLOCKED = 2114005;

    /**
     * 视频发布数量超过每日上限
     */
    public static final int VOIDE_PUBLISHED_LIMIT = 2114007;

    //----------------------VIDEO COMMENT-------------------------------

    /**
     * 命中敏感词
     */
    public static final int COMMENT_SENSITIVE_WORDS = 2111001;

    /**
     * 获取评论失败
     */
    public static final int COMMENT_GET_FAILD = 2111002;

    /**
     * 无效的评论
     */
    public static final int COMMENT_INVALID = 2111003;

    /**
     * 非本视频评论
     */
    public static final int COMMENT_NOT_THIS_VIDEO = 2111004;

    /**
     * 上一个置顶评论正在审核中, 请稍后再试
     */
    public static final int COMMENT_LAST_REVIEWED = 2111005;

    /**
     * 评论失败
     */
    public static final int COMMENT_FAILD = 2111006;

    /**
     * 获取视频失败
     */
    public static final int COMMENT_GET_VIDEO_FAILD = 2111007;

    //----------------------ENTERPRISE-------------------------------

    /**
     * 非企业号用户
     */
    public static final int ENTERPRISE_NOT_USER = 2112001;

    //----------------------MATERIAL-------------------------------

    /**
     * 素材不符合要求, 未通过审核
     */
    public static final int MATERIAL_NOT_PASS = 2113001;

    /**
     * 您的素材数量已达上限
     */
    public static final int MATERIAL_REACHED_LIMIT = 2113002;

}
